package com.ghpt.service.impl;
import com.ghpt.mapper.QingCNMapper;
import com.ghpt.pojo.QingCN;
import com.ghpt.service.QingCNService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class QingCNServiceImpl implements QingCNService {
    @Autowired
    private QingCNMapper qingCNMapper;

    @Override
    public QingCN findQingCNById(Long id) {
        if (id != null) {
            return qingCNMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(QingCN qingCN) {
        return qingCNMapper.updateById(qingCN);//更新成功为1否则为0
    }
}
